function enableStyle(nameID,styleID){
	if(window.confirm("确定启用选中的模板吗？")){
		var styleName = $("#met_skin_css_"+styleID).val();
		var styleCss = $("#met_skin_css_"+styleID).find("option:selected").text();
		
		$.ajax({
			url: appUrl+"/style/enableStyle/",
			type: 'POST',
			data: {id:nameID,styleName:styleName,styleCss:styleCss},
			dataType: 'json',
			cache: false,
			global: false,
			beforeSend: function(){
			},
			success: function(json){
				if(json.statusCode=="200"){
					//location.href=appUrl+'/style/index/';
					alert(json.message);
				}else{
					alert(json.message);
				}
			},
			error:function(XMLHttpRequest, textStatus, errorThrown){
				alert('网络错误!');
			},
			complete:function(){
			}
		});
	}else{
		$("#sklist_"+styleID).attr("checked",false);
	}
}